<extend name="Public/base"/>
<block name="body">

<form method="post" class="form-horizontal J_ajaxForm"  action="{:U("")}">
   <div class="tab-content">
    <div class="space-4"></div>
   
    <div class="form-group">
            <label class="col-sm-2 control-label "> 角色名称 </label>
            <div class="col-sm-10">
              <input type="text"  value="{$data.title}"  name="title" class="col-xs-10 col-sm-5" />
               </div>
          </div>
          
           <div class="space-4"></div>
          
           <div class="form-group">
            <label class="col-sm-2 control-label "> 角色描述 </label>
            <div class="col-sm-10">
             
             <textarea name="remark" rows="5" class="autosize-transition col-xs-10 col-sm-7 ">{$data.remark}</textarea>
               </div>
          </div>
           <div class="space-4"></div>
          
           <div class="form-group">
            <label class="col-sm-2 control-label "> 是否启用 </label>
            <div class="col-sm-10">
             	<php>$active_true_checked=($data['status'] ==1)?"checked":"";</php>
              <label class="radio inline" for="active_true">
            		<input type="radio" name="status" value="1" {$active_true_checked} id="active_true"/>开启
            </label>
            <php>$active_false_checked=($data['status'] ==0)?"checked":"";</php>
            <label class="radio inline" for="active_false">
            		<input type="radio" name="status" value="0" id="active_false" {$active_false_checked}>禁止
            </label>
               </div>
          </div>
    <div class="space-4"></div>
   </div>
       <input type="hidden" name="id" value="{$data.id}" />
      <div class="form-actions">
           <button class="btn btn-info ajax-post " target-form="J_ajaxForm" type="submit"> 更新</button>
           <a class="btn btn-return" href="__URL__" >返 回</a>
      </div>
    </form>
    
    


   


</block>





